package com.another.common.enums;

/**
 * @author : another
 * @version : 1.0
 * @description :
 * @date : 2019/7/18  上午9:06
 */
public enum CodeRuleEnum {
    USER_ID("t_user.user_id", "用户编号L"),
    PORT_NO("t_port.port_no", "港口编号"),
    PENDING_PALLET_NUMBER("t_plan.plan_no", "待发布货盘编号"),
    PRODUCT_NUMBER("t_plan_product.product_no", "货物编号"),
    PALLET_MASTER_NUMBER("t_plan_main.main_no", "货盘主表编号"),
    COMPANY_ID("t_company.company_id", "公司编号L");

    private String code;
    private String value;

    private CodeRuleEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(String code) {
        CodeRuleEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            CodeRuleEnum submitTypeEnum = var1[var3];
            if (submitTypeEnum.code.equals(code)) {
                return submitTypeEnum.value;
            }
        }

        return null;
    }

    public String getCode() {
        return this.code;
    }

    public String getValue() {
        return this.value;
    }
}
